<template>
    <div>
<van-search v-model="value" placeholder="请输入搜索关键词"  style="margin-top: 10px;" @click="search"/>

    </div>
</template>

<script setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';
    const router = useRouter();
    const value = ref('');
    const search=()=>{
        console.log(value.value);
        router.push('/search')
    }

</script>

<style lang="scss" scoped>

</style>